//封装登录和注册接口
import request from "@/untient/requset";
export const registerApi =(data)=>{
  return request({
    url:'/admin/registered',
    method:'post',
    data
  })
}
export const loginApi =(data)=>{
  return request({
    url:'/admin/login',
    method:'post',
    data
  })
}
//获取等会后的数据 比如游客信息
 export const userInfo =()=>{
  return request({
    url:'/user',
    method:'get',
   
  })
 }
 //热门城市
 export const cityList =()=>{
  return request({
    url:'/area/city',
    method:'get',
    params:{
      level:1
    }
  })
 }
 //当前城市
 export const areaList = () =>{
  return request({
    url:'/area/hot',
    method:'get',
  })
 }
